The Advanced Calendar Component > FAdvancedCalendar.setCellData(data, dateObj)

 

FAdvancedCalendar.setCellData(data, dateObj)

Availability

Flash Player 6.

Usage

myCalendar.setCellData(data, dateObj);

Parameters

data
A user defined object or an array of objects used to store custom data with the calendar. When data is an array and the component is using a DataProvider, an item will be added to the DataProvider for each item in the array.
dateObj
A Date object specifying the date that the data should be associated with.

Returns

Nothing.

Description

Adds a user defined data object to a calendar day.

Example

The following example shows adding data to today's cell.

var dateObj = new Date();
var myData = {user: "testUser", id: "tuser"};
myCalendar.setCellData(myData, dateObj);

See also

FAdvancedCalendar.getCellData
FAdvancedCalendar.setDataProvider